<?php session_start();
include "constants.php";
$dates=date_create(CUTOFFS);
$cutoffdates=date_format($dates,"m/d/Y");
$displays=SHOWOFFS;
$INITIALS=SPOINT;

$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); 

if (!$link) { 
    die('Could not connect: ' . mysql_error()); 
} 
mysql_select_db(DB_NAME);

$newip = $_SERVER['REMOTE_ADDR'];
$Employee=$_SESSION['Username'];
$coup=$_SESSION['Coupon'];


if(!isset($Employee)||empty($Employee)||$newip!= $_SESSION['IP'])
{echo "If you are payday loan applicant, please start your ". "<a href='apply.php'>application here</a> now, thank you for your cooperation!";
exit();
}

//The following part is to set up interactive function between user and server
$status = $provinceID = $reason=$approvedloan=null; //declare vars
$updateholiday="";
$holidayitem=0;
$updateoffice=null;
$officeitem=0;

if(isset($_POST["mstatus"]) && is_numeric($_POST["mstatus"]))
{
    $status = $_POST["mstatus"];
}

if(isset($_POST["provinceID"]) && is_numeric($_POST["provinceID"]))
{
    $provinceID = $_POST["provinceID"];
}

if(isset($_POST["holidayitem"]) && is_numeric($_POST["holidayitem"]))
{
    $holidayitem = $_POST["holidayitem"];
}

if(isset($_POST["updateholiday"]))
{
    $updateholiday = $_POST["updateholiday"];
	$sql = "SELECT * FROM HOLIDAYS WHERE NAMES='$updateholiday'";
	$result = mysql_query($sql,$link);  	
	$row = mysql_fetch_array($result);
	$NAMES=$row['NAMES']; 
	$DATES=$row['DATES']; 
}
if(isset($_POST["officeitem"]) && is_numeric($_POST["officeitem"]))
{
	$officeitem = $_POST["officeitem"];
}
if(isset($_POST["updateoffice"]))
{
	$updateoffice = $_POST["updateoffice"];
	$sql = "SELECT * FROM HOURS WHERE START='$updateoffice'";
	$result = mysql_query($sql,$link);  	
	$row = mysql_fetch_array($result);
	$START=$row['START']; 
	$CLOSE=$row['CLOSE']; 
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cash2u.ca: Payday loan online processing</title>
<META NAME="Keywords" CONTENT="How it works, payday loans,cash advance, payday loan, pay day loans, payday cash advance, online, unsecured loans, no fax payday loans, payday advance, payday cash loan, payday loans, cash advance, paycheque loans, short term,fast cash, unsecured personal loans, pay day loan, no fax loans, no faxing payday loans, no fax cash advance, faxless payday loans, short term loans, unsecured personal loan, unsecured loan, online loans, quick cash, no fax payday loan, payday cash advance, cash advance, online loan, fast cash loans, signature loan, no fax pay day loans, pay day advance, payday loans no faxing required, payday loan online, no faxing cash advance, payday loans no faxing, canada, money mart, money here, quick cash,check,cashing,easy,tax, bill,payment,currency,card,credit,Easy Cash Advances,Internet Payday loans, Payroll Advance, Payday Loan Services,Online Payday Advances, Online Payday Loan Provider, Pay Day">
<META NAME="Description" CONTENT=Cash2u.ca offers online payday loans and cash advance for Canadians">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="./css/usernamecheck.js">
</script>
<script src="./css/jquery.maskedinput.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="./css/main_style.css"/>
<link rel="stylesheet" type="text/css" href="./css/index.css"/>
<script type="text/javascript" src="validationjava.js"></script>
<script src="formavalidates.js" type="text/javascript"></script>
<style type="text/css">@import "/css/jquery.datepick.css";</style>
<script type="text/javascript" src="/css/jquery.datepick.js"></script>
<script type="text/javascript">
function autoSubmit()
{
    var formObject = document.forms['informationmanagement'];
    formObject.submit();
}

</script>


</head>
<body>
<div id="maincontainer">

<div id="headsection">
<div id="headback">
<br/><br/><br/><h1><a style="color:white;" href="apply.php">Cash to you</a></h1><p id="headpara"><a style="color:white;" href="apply.php">Simple Easy Fast - Your payday loan</a></p>
</div>
</div>

<table cellspacing="4" cellpadding="1" border="0" style="margin:5px;height:50px;width:740px;background-color:#084c8d;border:1px solid #e5e5e5;color:white;font-size:110%;font-weight:bold;">
<tr><td width="20"></td>
<td width="110" align="center"><a class="headlink" href="NewAppliation.php">Application</a></td>
<td width="110" align="center"><a class="headlink" href="management.php" target="_blank">Management</a></td>
<td width="110" align="center"><a class="headlink" href="reports.php" target="_blank">Reports</a></td>
<td width="110" align="center"></td>
<td width="110" align="center"></td>
<td width="110" align="center"></td>
<td width="110" align="center"><a class="headlink" href="logout.php">Log out</a></td>
<td width="110"></td>
</tr>
</table>

<div id="content">
    	<div id="Apphead" class="Apphead" style="margin: 20px 0 0 5px;">
        	<h3>Management Process</h3>            
    	</div>
        <!-- EOD of Application Head -->    
          
        <div id="TopSectionWrapper" class="PersonalInfo">

<!---------------------------------------------------------------------------------------------->


<form name="informationmanagement" method="post">
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td width="700" align="center">Please Select Management Item</td></tr>
<tr><td width="700" align="center">    
    <select style="width: 220px;" name="mstatus" onChange="autoSubmit();">
	<option value="null">Please select management item</option>
	<option value="1" <?php if($status == 1) echo " selected"; ?>>Update Promotion Coupon</option>
	<option value="2" <?php if($status == 2) echo " selected"; ?>>Create Employee LoginID</option>
        <option value="3" <?php if($status == 3) echo " selected"; ?>>Send Email</option>
        <option value="4" <?php if($status == 4) echo " selected"; ?>>Update Province Cost</option>
        <option value="5" <?php if($status == 5) echo " selected"; ?>>PAD is set up</option>
        <option value="6" <?php if($status == 6) echo " selected"; ?>>Repayment is done</option>
        <option value="7" <?php if($status == 7) echo " selected"; ?>>Send query emails</option>
        <option value="8" <?php if($status == 8) echo " selected"; ?>>Update Application</option>
        <option value="9" <?php if($status == 9) echo " selected"; ?>>Create Questions</option>
        <option value="10" <?php if($status == 10) echo " selected"; ?>>Holidays</option>
        <option value="11" <?php if($status == 11) echo " selected"; ?>>Office Hours</option>
        <option value="12" <?php if($status == 12) echo " selected"; ?>>Update Profile</option>
    </select></td></tr>

<!--The following part is used to populate current promotion Coupon-->
    <?php if($status != null && is_numeric($status) && $status==1)  { ?>
        <?php        
        //POPULATE Current Coupon Rate from Database
        $sql = "SELECT * FROM Promotion WHERE PID=$status";
        $Rates = mysql_query($sql,$link);  
	$row = mysql_fetch_array($Rates);
	$CCoup=$row['Rate'];
	$PID=$row['PID'];
	?>
    <tr><td width="700" align="center">Current Promotion Coupon Rate</td></tr>
    <tr><td width="700" align="center"><input type="text" style="width: 150px;" readonly value="<?php echo $CCoup;?>"></td>  
	</td></tr>
    <?php    }    ?>
<!--The above part is used to populate current promotion Coupon-->

<!--The following part is used to populate current provincial cost-->
    <?php if($status != null && is_numeric($status) && $status==4)  { ?>
	<tr></tr><tr></tr>
	<tr><td width="700" align="center">Please Select Province</td></tr>
	<tr><td width="700" align="center">
<select style="width: 220px;" name="provinceID" onChange="autoSubmit();">        
        <option value="null">Please select province</option>
        <?php        
        //POPULATE Current Coupon Rate from Database
        $sql = "SELECT * FROM ProvinceRates ORDER BY Province";
        $pcost = mysql_query($sql,$link);  	
	while($row = mysql_fetch_array($pcost)) {        
            echo ("<option value=\"$row[PID]\" " . ($provinceID == $row["PID"] ? " selected" : "") . ">$row[Province]			</option>");  }  ?>	
</select></td></tr><tr></tr><tr></tr>   	
<tr><td width="700" align="center">Maximum Allowed Cost</td></tr>
<?php if($provinceID != null) { ?>
	<tr><td width="700" align="center">
	<?php        
        //POPULATE Selected PRovince Cost
        $sql = "SELECT * FROM ProvinceRates WHERE PID=$provinceID";
        $pcost = mysql_query($sql,$link);  	
	$row = mysql_fetch_array($pcost);
	$MCost=$row['Rates'];  ?>
	<input type="text" style="width: 150px;" readonly value="<?php echo $MCost;?>"></td></tr> 
<?php } ?>

    <?php    }    ?>
<!--The above part is used to populate current provincial cost-->

</table>


<!--Canadian holidays Starting-->
<?php if($status != null && is_numeric($status) && $status==10)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
	<tr><td width="700" align="center">Please Select Action</td></tr>
	<tr><td width="700" align="center">
	<select style="width: 220px;" name="holidayitem" onChange="autoSubmit();">        
        <option value="0" <?php if($holidayitem == "0") echo " selected"; ?>>---select---</option>
	<option value="1" <?php if($holidayitem == "1") echo " selected"; ?>>Insert holidays</option>
	<option value="2" <?php if($holidayitem == "2") echo " selected"; ?>>Update holidays</option>
	<option value="3" <?php if($holidayitem == "3") echo " selected"; ?>>Remove holidays</option>
	</select></td></tr>     

	<?php if($holidayitem==2||$holidayitem==3)  { ?>
		<tr><td width="700" align="center">select holidays</td>
		<tr><td width="700" align="center">
		<select style="width: 220px;" name="updateholiday" onChange="autoSubmit();">        
	        <option value="">---select----</option>
        	<?php        
        	$sql = "SELECT * FROM HOLIDAYS";
	        $pcost = mysql_query($sql,$link);  	
		while($row = mysql_fetch_array($pcost)) {        
	            echo ("<option value=\"$row[NAMES]\" " . ($updateholiday == $row["NAMES"] ? " selected" : "") . ">$row[NAMES]</option>");  }  ?>	
		</select></td></tr>
		</table>		
		<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">		
		<?php if($updateholiday!="")  { ?>
		<tr>
	        <td width="150" align="right">Holiday name:</td>
        	<td width="150"><input type="text" style="width: 100px;" name="holidayname" id="holidayname"  style="width: 150px;border:1px solid #4195fc;" value="<?php echo $NAMES;?>" readonly></td>
                <td width="150" align="right">Holiday Date:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="holidaydate" id="holidaydate" value="<?php echo $DATES;?>" readonly></td>
		</tr>	
		<?php    }    ?>
	<?php    }    ?>
  
</table>
<?php    }    ?>
<!--Canadian holidays Ending---->


<!--office hours Starting-->
<?php if($status != null && is_numeric($status) && $status==11)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
	<tr><td width="700" align="center">Please Select Action</td></tr>
	<tr><td width="700" align="center">
	<select style="width: 220px;" name="officeitem" onChange="autoSubmit();">        
        <option value="0" <?php if($officeitem == "0") echo " selected"; ?>>---select---</option>
	<option value="1" <?php if($officeitem == "1") echo " selected"; ?>>Insert Office Hours</option>
	<option value="2" <?php if($officeitem == "2") echo " selected"; ?>>Update Office Hours</option>
	<option value="3" <?php if($officeitem == "3") echo " selected"; ?>>Remove Office Hours</option>
	</select></td></tr>     

	<?php if($officeitem==2||$officeitem==3)  { ?>
		<tr><td width="700" align="center">select office hours</td>
		<tr><td width="700" align="center">
		<select style="width: 220px;" name="updateoffice" onChange="autoSubmit();">        
	        <option value="">---select----</option>
        	<?php        
        	$sql = "SELECT * FROM HOURS";
	        $pcost = mysql_query($sql,$link);  	
		while($row = mysql_fetch_array($pcost)) {        
	            echo ("<option value=\"$row[START]\" " . ($updateoffice == $row["START"] ? " selected" : "") . ">$row[START]"."~"."$row[CLOSE]</option>");  }  ?>	
		</select></td></tr>
		</table>		
		<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">		
		<?php if($updateoffice!="")  { ?>
		<tr>
	        <td width="150" align="right">Start Time:</td>
        	<td width="150"><input type="text" style="width: 100px;" name="officename" id="officename"  style="width: 150px;border:1px solid #4195fc;" value="<?php echo $START;?>" readonly></td>
                <td width="150" align="right">Holiday Date:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="officedate" id="officedate" value="<?php echo $CLOSE;?>" readonly></td>
		</tr>	
		<?php    }    ?>
	<?php    }    ?>
  
</table>

<?php    }    ?>
<!--office hours Ending---->

</form>

<form name="manageupdate" method="post" action="udpatemanagementinfor.php" target="_blank">

<!--The following part is used to update new coupon rate-->

<?php	if($status == 1)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td width="700" align="center">Proposed Coupon Rate</td></tr>
<tr><td width="700" align="center">
<select style="width: 220px;" name="rate">
	<option value="null">Please select coupon rate</option>
	<option value="1" >1</option>
	<option value="0.95" >0.95</option>
        <option value="0.90" >0.90</option>
        <option value="0.85" >0.85</option>
        <option value="0.80" >0.80</option>
        <option value="0.75" >0.75</option>
        <option value="0.70" >0.70</option>
        <option value="0.65" >0.65</option>
        <option value="0.60" >0.60</option>
        <option value="0.55" >0.55</option>
        <option value="0.50" >0.50</option>
</select></td></tr><tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>

<tr><td width="700" align="center"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td></tr>
</table>	
<?php   }    ?>
<!--The above part is used to update new coupon rate-->

<!--The following part is used to create new loginID-->
<?php	if($status == 2)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td width="700" align="center">Please Create Employee LoginID</br><span style="color:green;font-size:small;">At least four characters/digits</span></td></tr>
<tr><td width="700" align="center">
<input name="loginID" id="loginID" type="text" />
<img id="available" src="./images/available.png" width="16" height="16"/>
<img id="notavailable" src="./images/notavailable.png" width="16" height="16"/></td></tr><tr></tr>

<tr><td width="700" align="center">Please Select Employee Role</td></tr>
<tr><td width="700" align="center">
<select style="width: 220px;" name="roles">
	<option value="null">Please select roles</option>
	<option value="admin" >Admin</option>
	<option value="employee" >Employee</option>
</select></td></tr><tr></tr>
<tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>

<tr><td width="700" align="center"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td></tr>
</table>	
<?php   }    ?>
<!--The above part is used to create new employee loginID-->

<!--The following part is to process feedback to contact-->
<?php	if($status == 3)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
	<tr>
	<td width="210" align="right"></td>
	<td width="410" align="left">Separate emails by comma</td>
	</tr>
	<tr>
	<td width="210" align="right">TO:</td>
        <td width="410"><input type="text" style="width: 180px;" value="" name="TOS"></td>
	</tr>
	<tr>
        <td width="210" align="right">CC:</td>
        <td width="410"><input type="text" style="width: 180px;" name="CCS" value=""></td>
	</tr>
	<tr>
        <td width="210" align="right">BCC:</td>
        <td width="410"><input type="text" style="width: 180px;" name="BCCS" value=""></td>
	</tr>	
	<tr>
        <td width="210" align="right">SUBJECT:</td>
        <td width="410"><input type="text" style="width: 180px;" name="SUBJECT" value=""></td>
	</tr>	
	<tr>
        <td width="210" align="right">FROM:</td>
        <td width="410">
		<select style="width: 220px;" name="FROM">
			<option value="null">Please select email</option>
			<option value="adam.wang@cash2u.ca" >adam.wang@cash2u.ca</option>
			<option value="amandalbl@cash2u.ca" >amandalbl@cash2u.ca</option>
			<option value="amandalbl@yahoo.com" >amandalbl@yahoo.com</option>
			<option value="careers@cash2u.ca" >careers@cash2u.ca</option>
			<option value="customerservices@cash2u.ca" >customerservices@cash2u.ca</option>
			<option value="customerservicessupport@cash2u.ca" >customerservicessupport@cash2u.ca</option>
			<option value="loanapplication@cash2u.ca" >loanapplication@cash2u.ca</option>
		</select>
	</td>
	</tr>	
	<tr>
	<td width="210" align="right">Contents</td>
        <td width="410"><textarea rows="5" cols="50" name="contents"></textarea></td>
	</tr>
	<tr>
	<td width="210" align="right"></td>
        <td width="410"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td>
	</tr>
<tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
</table>
<?php   }    ?>	

<!--The above part is to process feedback to contact-->

<!--The following part is used to update Provincial Cost-->

<?php	if($status == 4)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td width="700" align="center">New Maximum Allowed Cost</td></tr>
<tr><td width="700" align="center"><input type="text" name="mcost" style="width: 150px;">
</td></tr><tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
<tr><td><input type="text" style="visibility:hidden;" name="m_pid" value="<?php echo $provinceID;?>"></td></tr>
<tr><td width="700" align="center"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td></tr>
</table>	
<?php   }    ?>
<!--The above part is used to update Provincial Cost-->

<!--The following part is used to update PAD Setup-->

<?php	if($status == 5)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td width="700" align="center">Please select AccountID</td></tr>
<tr><td width="700" align="center">  
    	<select style="width: 220px;" name="UAccID">        
        <option value="null">--Please select AccountiD--</option>        
        <?php        
        //POPULATE DROP DOWN MENU WITH Approved Application FROM A GIVEN status
        $sql = "SELECT *,AccountID-$INITIALS AS ONES FROM Applications WHERE NewApp = '7'";
        $states = mysql_query($sql,$link);
        while($row = mysql_fetch_array($states)) {        
            echo ("<option value=\"$row[AccountID]\" " . ">$row[ONES]</option>");  }  ?>
        
    </select></td></tr><tr></tr>
  

</td></tr><tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
<tr><td width="700" align="center"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td></tr>
</table>
	
<?php   }    ?>
<!--The above part is used to update PAD setup-->

<!--The following part is used to update Repayment Status-->

<?php	if($status == 6)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td width="700" align="center">Please select AccountID</td></tr>
<tr><td width="700" align="center">  
    	<select style="width: 220px;" name="UAccID">        
        <option value="null">--Please select AccountiD--</option>        
        <?php        
        //POPULATE DROP DOWN MENU WITH Approved Application FROM A GIVEN status
        $sql = "SELECT *,AccountID-$INITIALS AS ONES FROM Applications WHERE NewApp = '3' AND Datediff(SignDate, STR_TO_DATE('$cutoffdates' , '%m/%d/%Y' ))>0";
        $states = mysql_query($sql,$link);
        while($row = mysql_fetch_array($states)) {        
            echo ("<option value=\"$row[AccountID]\" " . ">$row[ONES]</option>");  }  ?>
        
    </select></td></tr><tr></tr>
  

</td></tr><tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
<tr><td width="700" align="center"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td></tr>
</table>
	
<?php   }    ?>
<!--The above part is used to update Repayment Status-->

<!--The following part is to query information-->
<?php	if($status == 7)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
	<tr>
	<td width="210" align="right">Enter AccountID:</td>
        <td width="410"><input type="text" style="width: 180px;" value="" name="TOAccount"></td>
	</tr>
	<tr>
        <td width="210" align="right">SUBJECT:</td>
        <td width="410">
		<select style="width: 220px;" name="SUBJECT">
			<option value="0">Please select subject</option>
			<option value="1" >Loan Application-Security Questions</option>
			<option value="2" >Loan Application-Invalid Card and PWD</option>
			<option value="3" >TEST</option>
		</select>
	</td>
	</tr>	
	<tr>
        <td width="210" align="right">FROM:</td>
        <td width="410"><input type="text" style="width: 180px;" name="FROM" value="customerservicessupport@cash2u.ca"></td>
	</tr>	
	<td width="210" align="right"></td>
        <td width="410"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td>
	</tr>
<tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
</table>
<?php   }    ?>	
<!--The above part is to query information-->

<!--The following part is to update customer information-->
<?php	if($status == 8)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
	<tr>
	<td width="210" align="right">Update AccountID:</td>
        <td width="410"><input type="text" style="width: 180px;" value="" name="TOAccount"></td>
	</tr>
	<tr>
        <td width="210" align="right">Update Item:</td>
        <td width="410">
		<select style="width: 220px;" name="SUBJECT">
			<option value="null">Please select update item</option>
			<option value="DebitID">Update Debit Card #</option>
			<option value="DebitPWD">Update Password</option>
			<option value="SQ1">Update Security Question 1</option>
			<option value="AS1">Update Security Answer 1</option>
			<option value="SQ2">Update Security Question 2</option>
			<option value="AS2">Update Security Answer 2</option>
			<option value="SQ3">Update Security Question 3</option>
			<option value="AS3">Update Security Answer 3</option>
			<option value="SQ4">Update Security Question 4</option>
			<option value="AS4">Update Security Answer 4</option>
			<option value="SQ5">Update Security Question 5</option>
			<option value="AS5">Update Security Answer 5</option>
			<option value="BAmount">Update Maximum Amount</option>
			<option value="FirstPayDay">Update First Payday</option>
			<option value="SecondPayDay">Update Second Payday</option>
			<option value="TransitID">Update TransitID</option>
			<option value="InstitutionID">Update InstitutionID</option>
			<option value="CheckID">Update CheckID</option>
			<option value="ApprovalAmount">Update Approved Loan Amount</option>
			<option value="Costs">Update Approved Loan Cost</option>
			<option value="TotalCost">Update Total Cost</option>
			<option value="NewApp">Update As New Applicant</option>
			<option value="CollectDate">Update Repayment Date</option>
			<option value="NewAmount">Update Expected Payment</option>
		</select>
	</td>
	</tr>	
	<tr>
        <td width="210" align="right">Update Values:</td>
        <td width="410"><input type="text" style="width: 180px;" name="FROM" value=""></td>
	</tr>	
	<td width="210" align="right"></td>
        <td width="410"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td>
	</tr>
<tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
</table>
<?php   }    ?>	
<!--The above part is to update Customer Information-->


<!---Canadian holidays area------------------------>
<?php	if($status == 10)  { ?>	
	<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;visibility:hidden;">
		<tr>
                <td width="150" align="right">Holiday action:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="holidayaction" id="holidayaction" value="<?php echo $holidayitem;?>"></td>
	        <td width="150" align="right">Bank ID:</td>
        	<td width="150"><input type="text" style="width: 100px;" name="holidayid" id="holidayid"  style="width: 150px;border:1px solid #4195fc;" value="<?php echo $updateholiday;?>"></td>
		</tr>			
	</table>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">	
	<?php if($holidayitem==1)  { ?>
		<tr>
	        <td width="150" align="right">Holiday Name:</td>
        	<td width="150"><input type="text" name="holidayshorts" id="holidayshorts"  style="width: 150px;border:1px solid #4195fc;"></td>
                <td width="150" align="right">Holiday Date:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="holidaylongs" id="holidaylongs"></td>
		</tr>	
	<?php    }    ?>
	<?php if($holidayitem==2)  { ?>
		<?php if($updateholiday!="")  { ?>	
		<tr>
	        <td width="150" align="right">NEW Holiday Name:</td>
        	<td width="150"><input type="text" style="width: 100px;" name="newholidayshorts" id="newholidayshorts"  style="width: 150px;border:1px solid #4195fc;" value="<?php echo $NAMES;?>"></td>
                <td width="150" align="right">New Holiday Date:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="newholidaylongs" id="newholidaylongs" value="<?php echo $DATES;?>"></td>
		</tr>	
		<?php    }    ?>
	<?php    }    ?>
</table>	
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
<tr><td width="700" align="center"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td></tr>
</table>
<?php   }    ?>


<!---office hours area------------------------>
<?php	if($status == 11)  { ?>	
	<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;visibility:hidden;">
		<tr>
                <td width="150" align="right">Office action:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="officeaction" id="officeaction" value="<?php echo $officeitem;?>"></td>
	        <td width="150" align="right">Office ID:</td>
        	<td width="150"><input type="text" style="width: 100px;" name="officeid" id="officeid"  style="width: 150px;border:1px solid #4195fc;" value="<?php echo $updateoffice;?>"></td>
		</tr>			
	</table>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">	
	<?php if($officeitem==1)  { ?>
		<tr>
	        <td width="150" align="right">Start Time:</td>
        	<td width="150"><input type="text" name="officeshorts" id="officeshorts"  style="width: 150px;border:1px solid #4195fc;"></td>
                <td width="150" align="right">End Time:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="officelongs" id="officelongs"></td>
		</tr>	
	<?php    }    ?>
	<?php if($officeitem==2)  { ?>
		<?php if($updateoffice!="")  { ?>	
		<tr>
	        <td width="150" align="right">NEW Start Time:</td>
        	<td width="150"><input type="text" style="width: 100px;" name="newofficeshorts" id="newofficeshorts"  style="width: 150px;border:1px solid #4195fc;" value="<?php echo $START;?>"></td>
                <td width="150" align="right">New End Time:</td>
	        <td width="150"><input type="text" style="width: 150px;border:1px solid #4195fc;" name="newofficelongs" id="newofficelongs" value="<?php echo $CLOSE;?>"></td>
		</tr>	
		<?php    }    ?>
	<?php    }    ?>
	
</table>	
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
<tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
<tr><td width="700" align="center"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td></tr>
</table>
<?php   }    ?>
<!--The above part is used to update new coupon rate-->

<!---office hours area------------------------>


<!--The following part is to update customer Profile-->
<?php	if($status == 12)  { ?>
<table cellspacing="4" cellpadding="1" border="0" style="margin: 0 0 0 0;">
	<tr>
	<td width="210" align="right">Update AccountID:</td>
        <td width="410"><input type="text" style="width: 180px;" value="" name="TOAccount"></td>
	</tr>
	<tr>
        <td width="210" align="right">Update Item:</td>
        <td width="410">
		<select style="width: 220px;" name="SUBJECT">
			<option value="null">Please select update item</option>
			<option value="Address">Update Address</option>
			<option value="City">Update City</option>
			<option value="Province">Update Province</option>
			<option value="PostCode">Update Post Code</option>
			<option value="PrimaryPhone">Update PrimaryPhone</option>
			<option value="WorkPhone">Update Work Phone</option>
			<option value="CellPhone">Update Cell Phone</option>
			<option value="SIN">Update Social Insurance Number</option>
			<option value="DriverLicense">Update Drive License or Health Card</option>
			<option value="Reasons">Update Agency or NSF reason</option>
		</select>

	</td>
	</tr>	
	<tr>
        <td width="210" align="right">Update Values:</td>
        <td width="410"><input type="text" style="width: 180px;" name="FROM" value=""></td>
	</tr>	
	<td width="210" align="right"></td>
        <td width="410"><input type="submit" value=" &nbsp;Submit &nbsp; "/></td>
	</tr>
<tr><td><input type="text" style="visibility:hidden;" name="m_status" value="<?php echo $status;?>"></td></tr>
</table>
<?php   }    ?>	
<!--The above part is to update Customer Profile-->


</form>


<div id="footer">
<div id="imlinks"><b><strong>Copyright &#169 2011 Cash2u.ca All rights reserved</strong></b></div>
</div>

</div>

</body>
</html>













































































































